<template>
  <div class="dashboard-container">
    <card></card>
    <sale></sale>
    <observe></observe>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import card from './card'
import sale from "./sale"
import observe from "./observe"

export default {
  name: 'Dashboard',
  computed: {
    ...mapGetters([
      'name'
    ])
  },
  components:{
    card,
    sale,
    observe
  },
  mounted(){
    this.$store.dispatch("getData")
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}

</style>
